﻿@model LeadMaster.Models.Enquiry

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Enquiry</legend>

        @Html.HiddenFor(model => model.EnquiryID)

        <div class="editor-label">
            @Html.LabelFor(model => model.UserID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserID)
            @Html.ValidationMessageFor(model => model.UserID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CompanyID, "Company")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CompanyID", String.Empty)
            @Html.ValidationMessageFor(model => model.CompanyID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ContactID, "Contact")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ContactID", String.Empty)
            @Html.ValidationMessageFor(model => model.ContactID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EnquirySource)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EnquirySource)
            @Html.ValidationMessageFor(model => model.EnquirySource)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EnquiryDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EnquiryDate)
            @Html.ValidationMessageFor(model => model.EnquiryDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EnquiryTypeID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EnquiryTypeID)
            @Html.ValidationMessageFor(model => model.EnquiryTypeID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ReceptiveID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ReceptiveID)
            @Html.ValidationMessageFor(model => model.ReceptiveID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Notes)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Notes)
            @Html.ValidationMessageFor(model => model.Notes)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DiaryID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DiaryID)
            @Html.ValidationMessageFor(model => model.DiaryID)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
